import java.io.File;

public class Demo6 {
    public static void main(String[] args) {
        File file = new File("./test");
        File newFile = new File("./test2");
        boolean ret = file.renameTo(newFile);
        System.out.println(ret);
    }
}
